package com.vilen.learn.java7.V3_1;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by vilen on 2017/9/22.
 */
public class WebServiceAgentFinder implements AgentFinder {
    @Override
    public List<Agent> findAllAgents() {
        List<Agent> agents = new ArrayList<>();
        // Lots of RESTFul based implementation would go here
        Agent agent = new Agent();
        agent.setType("Java Developers");
        agents.add(agent);
        Agent agent1 = new Agent();
        agent1.setType("Python Developers");
        agents.add(agent1);
        return agents;
    }
}
